import java.util.Collections;

import java.util.List;
import java.util.ArrayList;

public class RainDriver {
	public static void main(String[] args) {
		RainGauge vic = new RainGauge("Victoria", "Reynolds", 10);
		
		vic.addRain(8);
		vic.addRain(4);
		vic.addRain(9);
		
		System.out.println("Rainfall for " + vic.getCity() + " " + vic.getNeighborhood());
		System.out.println("Rain is " + vic.getTotalRain());
		System.out.println("Tips is " + vic.getTipCount());
		
		List<RainGauge> allGauges = new ArrayList<RainGauge>();
		
		allGauges.add(vic);
		allGauges.add(new RainGauge("Victoria", "UVic", 20));
		
		RainGauge biggest = Collections.max(allGauges);
		System.out.println(biggest);
		
		allGauges.remove(new RainGauge("Victoria", "UVic", 0));
	}
}
